package com.maoning.product.feign;

import com.maoning.common.to.SkuHasStockVo;
import com.maoning.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author : 猫宁
 * @Date: 2021/12/7
 */
@FeignClient("gulimall-gateway")
public interface WareFeignService {
    /**
     * 查询sku是否有库存
     */
    @PostMapping("/api/ware/wareinfo/hasstock")
    public R hasStock(@RequestBody List<Long> skuIds);
}
